#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '16.0.0-r8')" = '<' ]; then
	# in -r7 we changed this directory containing a symlink, to a symlink itself
	# in -r8 we added the pre-upgrade, so check for < -r8
	if [ -d /usr/lib/clang/16 ]; then
		rm -r /usr/lib/clang/16
	fi
fi

exit 0
